package com.xuerhua.yxt.view;

import java.util.Date;

import com.xuerhua.yxt.common.enums.WorkApprovalStatus;
import com.xuerhua.yxt.utils.DateUtil;

public class OvertimeApplyView {


    private String depart;

    private String applyer;

    private Integer applyerId;

    private String approver;

    private Integer approverId;

    private String approvalStatus;

    private String rejectReason;

    private Date applyTime;

    private String applyTimeText;

    private Date approvalTime;

    private String approvalTimeText;

    private Integer id;
    //加班事由
    private String overtimeReason;

    //加班时长
    private String overtimeHours;
    //加班人员
    private String overtimePeople;
    //备注
    private String remark;

    private String approvalType;

    private String ccList;

    private Date startTime;

    private Date endTime;

    private Integer schoolId;

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getApplyer() {
        return applyer;
    }

    public void setApplyer(String applyer) {
        this.applyer = applyer;
    }

    public Integer getApplyerId() {
        return applyerId;
    }

    public void setApplyerId(Integer applyerId) {
        this.applyerId = applyerId;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public Integer getApproverId() {
        return approverId;
    }

    public void setApproverId(Integer approverId) {
        this.approverId = approverId;
    }

    public String getApprovalStatus() {
        return approvalStatus;
    }

    public void setApprovalStatus(String approvalStatus) {
        this.approvalStatus = approvalStatus;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
        if (applyTime != null)
            applyTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, applyTime);
    }

    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {

        this.approvalTime = approvalTime;
        if (approvalTime != null)
            approvalTimeText = DateUtil.getStrFromDate(DateUtil.DEFAULT_DATE_FORMAT, approvalTime);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOvertimeReason() {
        return overtimeReason;
    }

    public void setOvertimeReason(String overtimeReason) {
        this.overtimeReason = overtimeReason;
    }

    public String getOvertimeHours() {
        return overtimeHours;
    }

    public void setOvertimeHours(String overtimeHours) {
        this.overtimeHours = overtimeHours;
    }

    public String getOvertimePeople() {
        return overtimePeople;
    }

    public void setOvertimePeople(String overtimePeople) {
        this.overtimePeople = overtimePeople;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getApplyTimeText() {
        return applyTimeText;
    }

    public void setApplyTimeText(String applyTimeText) {
        this.applyTimeText = applyTimeText;
    }

    public String getApprovalTimeText() {
        return approvalTimeText;
    }

    public void setApprovalTimeText(String approvalTimeText) {
        this.approvalTimeText = approvalTimeText;
    }

    public String getApprovalStatusText() {
        return WorkApprovalStatus.getDesc(this.approvalStatus);
    }

    public String getApprovalType() {
        return approvalType;
    }

    public void setApprovalType(String approvalType) {
        this.approvalType = approvalType;
    }

    public String getCcList() {
        return ccList;
    }

    public void setCcList(String ccList) {
        this.ccList = ccList;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

}
